Skip to content

[ui] Reconstruction: Restore the Slot status of the clear method#2732

Merged
mh0g merged 1 commit intodevelopfrom
fix/homeButton
May 27, 2025
Merged

[ui] Reconstruction: Restore the Slot status of the clear method#2732
mh0g merged 1 commit intodevelopfrom
fix/homeButton

Conversation

@cbentejac
Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue introduced in cfd2b1e which changes the clear() method from the Reconstruction class from a slot to a regular method.

If clear() is not a slot, it cannot be called from the QML side. In practice, it made the "Home" button ineffective from the Application; once the Homepage had been left, it could not be returned to.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR restores the slot functionality for the Reconstruction.clear() method to re-enable its calling from QML.

  • Restores the @slot() decorator on the clear() method
  • Fixes the UI "Home" button functionality by ensuring clear() is callable via QML
Comments suppressed due to low confidence (1)

meshroom/ui/reconstruction.py:521

  • Ensure that the Slot decorator is correctly imported from the appropriate module (e.g., PySide2.QtCore or PyQt5.QtCore) to maintain consistency with the rest of the codebase.
    @Slot()

@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.11%. Comparing base (09b4797) to head (bcc711f).
Report is 2 commits behind head on develop.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2732   +/-   ##
========================================
  Coverage    77.11%   77.11%           
========================================
  Files           41       41           
  Lines         6166     6166           
========================================
  Hits          4755     4755           
  Misses        1411     1411           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@mh0g mh0g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me

@mh0g mh0g merged commit 4ad1de2 into develop May 27, 2025
5 checks passed
@mh0g mh0g deleted the fix/homeButton branch May 27, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants